Since commit
932ccac1c27, the Source constructor takes a
properties object instead of individual arguments.
That means that the policy may now be set through a construct
property, and we shouldn't override it if that was the case.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3170>
this.notifications = [];
- this._policy = this._createPolicy();
+ if (!this._policy)
+ this._policy = this._createPolicy();
}
get policy() {